//
// Created by ins on 2021/2/28.
//

#ifndef SERVICE_MAPEXITBEAN_H
#define SERVICE_MAPEXITBEAN_H

#include <iostream>
#include <string>

using std::string;
class MapExitBean {
private:
    string mid;
    string pname;
    string name;

public:
    MapExitBean() {}

    MapExitBean(string mid, const string &pname, const string &name){
        this->mid = mid;
        this->pname = pname;
        this->name = name;
    }
    MapExitBean(MapExitBean *pBean) {
        this->mid = pBean->mid;
        this->pname = pBean->pname;
        this->name = pBean->name;
    }

    string getMid() const {
        return mid;
    }

    void setMid(string mid) {
        MapExitBean::mid = mid;
    }

    const string &getPname() const {
        return pname;
    }

    void setPname(const string &pname) {
        MapExitBean::pname = pname;
    }

    const string &getName() const {
        return name;
    }

    void setName(const string &name) {
        MapExitBean::name = name;
    }

    string toString() {
        return "{"
               "\"mid\":" + mid +
               ",\"pname\":\"" + pname + '\"' +
               ", \"name\":\"" + name + '\"' +
               '}';
    }


};


#endif //SERVICE_MAPEXITBEAN_H
